package com.element.oauth2.server.service;

import org.springframework.security.oauth2.server.authorization.client.RegisteredClient;
import org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository;

public interface IAuthClientDetailsService extends RegisteredClientRepository {

    default void save(RegisteredClient registeredClient) {
        throw new UnsupportedOperationException();
    }

    default RegisteredClient findById(String id) {
        throw new UnsupportedOperationException();
    }

    @Override
    RegisteredClient findByClientId(String clientId);
}